Skip to content

remote functions#67

Merged
max-ostapenko merged 62 commits into
mainfrom
judicial-snake
Apr 15, 2025
Merged

remote functions#67
max-ostapenko merged 62 commits into
mainfrom
judicial-snake

Conversation

@max-ostapenko
Copy link
Copy Markdown
Contributor

@max-ostapenko max-ostapenko commented Feb 24, 2025

  • triggering export function from SQL using run_export_job remote function
  • supporting Firestore and Cloud Storage exports
  • changed export configuration to more flexible, example:
{
  "destination": "firestore",
  "config": {
    "database": "tech-report-api-dev",
    "collection": "adoption",
    "type": "report",
    "date": "2025-01-01"
  },
  "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM reports.tech_report_adoption WHERE date = '2025-01-01'"
}

or

{
  "destination": "cloud_storage",
  "config": {
    "bucket": "httparchive",
    "name": "/reports/bytesTotal.json"
  },
  "query": "SELECT FORMAT_DATE('%Y_%m_%d', date) AS date, * EXCEPT(date) FROM `httparchive.reports.bytesTotal_timeseries`"
}

@max-ostapenko max-ostapenko marked this pull request as ready for review April 15, 2025 05:54
@max-ostapenko max-ostapenko merged commit 91ec26d into main Apr 15, 2025
26 checks passed
@max-ostapenko max-ostapenko deleted the judicial-snake branch April 15, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants